package com.yidu.ladder.delivery.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
/**
 * 业务受理单实体类
 * @author lw
 *
 */
public class BusinessRecsipt implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5211066861093444905L;
	/**
	 * 业务受理Id
	 */
	private String businessRecsiptId;
	/**
	 * 业务受理单编号
	 */
	private String businessRecsiptNo;
	/**
	 * 客户Id
	 */
	private String customerId;
	/**
	 * 客户名
	 */
	private String customerName;
	/**
	 * 联系人
	 */
	private String contacts;
	/**
	 * 联系人电话
	 */
	private String contactsPhone;
	/**
	 * 取件地址
	 */
	private String pickupAddress;
	/**
	 * 取件城市
	 */
	private String pickupCity;
	/**
	 * 收件人
	 */
	private String recipients;
	/**
	 * 收件人电话
	 */
	private String recipientsPhone;
	/**
	 * 收件人地址
	 */
	private String recipientsAddress;
	/**
	 * 收件人城市
	 */
	private String recipientsCity;
	/**
	 * 产品时限，下拉选择：普通，快件，同城
	 */
	private String product;
	/**
	 * 重量
	 */
	private BigDecimal weight;
	/**
	 * 体积
	 */
	private BigDecimal volume;
	/**
	 * 件数
	 */
	private BigInteger numberOfPackages;
	/**
	 * 预约取件时间
	 */
	private Date pickTime;
	/**
	 * 派单是否成功
	 */
	private String orderType;
	
	public BusinessRecsipt() {
		super();
	}

	public BusinessRecsipt(String businessRecsiptId, String businessRecsiptNo, String customerId, String customerName,
			String contacts, String contactsPhone, String pickupAddress, String pickupCity, String recipients,
			String recipientsPhone, String recipientsAddress, String recipientsCity, String product, BigDecimal weight,
			BigDecimal volume, BigInteger numberOfPackages, Date pickTime, String orderType) {
		super();
		this.businessRecsiptId = businessRecsiptId;
		this.businessRecsiptNo = businessRecsiptNo;
		this.customerId = customerId;
		this.customerName = customerName;
		this.contacts = contacts;
		this.contactsPhone = contactsPhone;
		this.pickupAddress = pickupAddress;
		this.pickupCity = pickupCity;
		this.recipients = recipients;
		this.recipientsPhone = recipientsPhone;
		this.recipientsAddress = recipientsAddress;
		this.recipientsCity = recipientsCity;
		this.product = product;
		this.weight = weight;
		this.volume = volume;
		this.numberOfPackages = numberOfPackages;
		this.pickTime = pickTime;
		this.orderType = orderType;
	}

	public String getBusinessRecsiptId() {
		return businessRecsiptId;
	}

	public void setBusinessRecsiptId(String businessRecsiptId) {
		this.businessRecsiptId = businessRecsiptId;
	}

	public String getBusinessRecsiptNo() {
		return businessRecsiptNo;
	}

	public void setBusinessRecsiptNo(String businessRecsiptNo) {
		this.businessRecsiptNo = businessRecsiptNo;
	}

	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getContacts() {
		return contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}

	public String getContactsPhone() {
		return contactsPhone;
	}

	public void setContactsPhone(String contactsPhone) {
		this.contactsPhone = contactsPhone;
	}

	public String getPickupAddress() {
		return pickupAddress;
	}

	public void setPickupAddress(String pickupAddress) {
		this.pickupAddress = pickupAddress;
	}

	public String getPickupCity() {
		return pickupCity;
	}

	public void setPickupCity(String pickupCity) {
		this.pickupCity = pickupCity;
	}

	public String getRecipients() {
		return recipients;
	}

	public void setRecipients(String recipients) {
		this.recipients = recipients;
	}

	public String getRecipientsPhone() {
		return recipientsPhone;
	}

	public void setRecipientsPhone(String recipientsPhone) {
		this.recipientsPhone = recipientsPhone;
	}

	public String getRecipientsAddress() {
		return recipientsAddress;
	}

	public void setRecipientsAddress(String recipientsAddress) {
		this.recipientsAddress = recipientsAddress;
	}

	public String getRecipientsCity() {
		return recipientsCity;
	}

	public void setRecipientsCity(String recipientsCity) {
		this.recipientsCity = recipientsCity;
	}

	public String getProduct() {
		return product;
	}

	public void setProduct(String product) {
		this.product = product;
	}

	public BigDecimal getWeight() {
		return weight;
	}

	public void setWeight(BigDecimal weight) {
		this.weight = weight;
	}

	public BigDecimal getVolume() {
		return volume;
	}

	public void setVolume(BigDecimal volume) {
		this.volume = volume;
	}

	public BigInteger getNumberOfPackages() {
		return numberOfPackages;
	}

	public void setNumberOfPackages(BigInteger numberOfPackages) {
		this.numberOfPackages = numberOfPackages;
	}

	public Date getPickTime() {
		return pickTime;
	}

	public void setPickTime(Date pickTime) {
		this.pickTime = pickTime;
	}

	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((businessRecsiptId == null) ? 0 : businessRecsiptId.hashCode());
		result = prime * result + ((businessRecsiptNo == null) ? 0 : businessRecsiptNo.hashCode());
		result = prime * result + ((contacts == null) ? 0 : contacts.hashCode());
		result = prime * result + ((contactsPhone == null) ? 0 : contactsPhone.hashCode());
		result = prime * result + ((customerId == null) ? 0 : customerId.hashCode());
		result = prime * result + ((customerName == null) ? 0 : customerName.hashCode());
		result = prime * result + ((numberOfPackages == null) ? 0 : numberOfPackages.hashCode());
		result = prime * result + ((orderType == null) ? 0 : orderType.hashCode());
		result = prime * result + ((pickTime == null) ? 0 : pickTime.hashCode());
		result = prime * result + ((pickupAddress == null) ? 0 : pickupAddress.hashCode());
		result = prime * result + ((pickupCity == null) ? 0 : pickupCity.hashCode());
		result = prime * result + ((product == null) ? 0 : product.hashCode());
		result = prime * result + ((recipients == null) ? 0 : recipients.hashCode());
		result = prime * result + ((recipientsAddress == null) ? 0 : recipientsAddress.hashCode());
		result = prime * result + ((recipientsCity == null) ? 0 : recipientsCity.hashCode());
		result = prime * result + ((recipientsPhone == null) ? 0 : recipientsPhone.hashCode());
		result = prime * result + ((volume == null) ? 0 : volume.hashCode());
		result = prime * result + ((weight == null) ? 0 : weight.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BusinessRecsipt other = (BusinessRecsipt) obj;
		if (businessRecsiptId == null) {
			if (other.businessRecsiptId != null)
				return false;
		} else if (!businessRecsiptId.equals(other.businessRecsiptId))
			return false;
		if (businessRecsiptNo == null) {
			if (other.businessRecsiptNo != null)
				return false;
		} else if (!businessRecsiptNo.equals(other.businessRecsiptNo))
			return false;
		if (contacts == null) {
			if (other.contacts != null)
				return false;
		} else if (!contacts.equals(other.contacts))
			return false;
		if (contactsPhone == null) {
			if (other.contactsPhone != null)
				return false;
		} else if (!contactsPhone.equals(other.contactsPhone))
			return false;
		if (customerId == null) {
			if (other.customerId != null)
				return false;
		} else if (!customerId.equals(other.customerId))
			return false;
		if (customerName == null) {
			if (other.customerName != null)
				return false;
		} else if (!customerName.equals(other.customerName))
			return false;
		if (numberOfPackages == null) {
			if (other.numberOfPackages != null)
				return false;
		} else if (!numberOfPackages.equals(other.numberOfPackages))
			return false;
		if (orderType == null) {
			if (other.orderType != null)
				return false;
		} else if (!orderType.equals(other.orderType))
			return false;
		if (pickTime == null) {
			if (other.pickTime != null)
				return false;
		} else if (!pickTime.equals(other.pickTime))
			return false;
		if (pickupAddress == null) {
			if (other.pickupAddress != null)
				return false;
		} else if (!pickupAddress.equals(other.pickupAddress))
			return false;
		if (pickupCity == null) {
			if (other.pickupCity != null)
				return false;
		} else if (!pickupCity.equals(other.pickupCity))
			return false;
		if (product == null) {
			if (other.product != null)
				return false;
		} else if (!product.equals(other.product))
			return false;
		if (recipients == null) {
			if (other.recipients != null)
				return false;
		} else if (!recipients.equals(other.recipients))
			return false;
		if (recipientsAddress == null) {
			if (other.recipientsAddress != null)
				return false;
		} else if (!recipientsAddress.equals(other.recipientsAddress))
			return false;
		if (recipientsCity == null) {
			if (other.recipientsCity != null)
				return false;
		} else if (!recipientsCity.equals(other.recipientsCity))
			return false;
		if (recipientsPhone == null) {
			if (other.recipientsPhone != null)
				return false;
		} else if (!recipientsPhone.equals(other.recipientsPhone))
			return false;
		if (volume == null) {
			if (other.volume != null)
				return false;
		} else if (!volume.equals(other.volume))
			return false;
		if (weight == null) {
			if (other.weight != null)
				return false;
		} else if (!weight.equals(other.weight))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "BusinessRecsipt [businessRecsiptId=" + businessRecsiptId + ", businessRecsiptNo=" + businessRecsiptNo
				+ ", customerId=" + customerId + ", customerName=" + customerName + ", contacts=" + contacts
				+ ", contactsPhone=" + contactsPhone + ", pickupAddress=" + pickupAddress + ", pickupCity=" + pickupCity
				+ ", recipients=" + recipients + ", recipientsPhone=" + recipientsPhone + ", recipientsAddress="
				+ recipientsAddress + ", recipientsCity=" + recipientsCity + ", product=" + product + ", weight="
				+ weight + ", volume=" + volume + ", numberOfPackages=" + numberOfPackages + ", pickTime=" + pickTime
				+ ", orderType=" + orderType + "]";
	}
	
	
}
